package cn.example.vip.mall.search.service.impl;

import cn.example.vip.mall.search.entity.SeckillGoodsEs;
import cn.example.vip.mall.search.mapper.SeckillGoodsSearchMapper;
import cn.example.vip.mall.search.service.SeckillGoodsSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SeckillGoodsSearchServiceImpl implements SeckillGoodsSearchService {
	@Autowired
	private SeckillGoodsSearchMapper seckillGoodsSearchMapper;
	
	/**
	 * 商品导入索引库
	 * @param seckillGoodsEs
	 */
	@Override
	public void add(SeckillGoodsEs seckillGoodsEs) {
		seckillGoodsSearchMapper.save(seckillGoodsEs);
	}
}
